package com.resou.reader.api.entry;

import android.os.Parcel;
import android.os.Parcelable;

public class BookContentData implements Parcelable {

    /**
     * coverUrl : //qidian.qpic.cn/qdbimg/349573/c_10322168804096603/180
     * nextId : 28240262058696575
     * backId : indexPage
     * nowchapterId : 28234439687587020
     * data : [{"sortNo":1,"isPay":"0","chapterId":"28234439687587020","updateStatus":1,"price":0,"channel":"yw","chapterName":"第1章 老班长的恳求","discount":0,"content":"fmVp3z8/jHQ2vhJ6A7FQ0UptCY7uqXVbVhVb8eaUmkmHeBGgHFbp1eVSBh/Tqmy9P491XTGdAbxCI01nYK/DHMJnHWp6C+vX5db7waRXdgcYdnOiLdgUgXPaAhhseVz3Zr7Bt5BbQMny1inlqrmw0QADUfB3bmmhwj+1ooGq7j6fSDt3tmxFJIQKA8H3mQiBjdKgDW+g5KNPsIlTz011HDIPsH9jf+DsxBfeTUwX3NPz1g0Uxcfo7xoaSktYc1pZsTRp36DykZwqYu5bokmGhXMQj305WP9tOXPChsrE4VIv5dSA+oXptz31VWlVGqfDxHpCqkknQAyVGQVtA=","isVip":0}]
     * chapterName : 第1章 老班长的恳求
     * novelName : 抗日之铁血战将
     */

    private String coverUrl;
    private String nextId;
    private String backId;
    private String nowchapterId;
    private String chapterName;
    private String novelName;
    private BookContentBean data;

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getNextId() {
        return nextId;
    }

    public void setNextId(String nextId) {
        this.nextId = nextId;
    }

    public String getBackId() {
        return backId;
    }

    public void setBackId(String backId) {
        this.backId = backId;
    }

    public String getNowchapterId() {
        return nowchapterId;
    }

    public void setNowchapterId(String nowchapterId) {
        this.nowchapterId = nowchapterId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getNovelName() {
        return novelName;
    }

    public void setNovelName(String novelName) {
        this.novelName = novelName;
    }

    public BookContentBean getData() {
        return data;
    }

    public void setData(BookContentBean data) {
        this.data = data;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.coverUrl);
        dest.writeString(this.nextId);
        dest.writeString(this.backId);
        dest.writeString(this.nowchapterId);
        dest.writeString(this.chapterName);
        dest.writeString(this.novelName);
        dest.writeParcelable(this.data, flags);
    }

    public BookContentData() {
    }

    protected BookContentData(Parcel in) {
        this.coverUrl = in.readString();
        this.nextId = in.readString();
        this.backId = in.readString();
        this.nowchapterId = in.readString();
        this.chapterName = in.readString();
        this.novelName = in.readString();
        this.data = in.readParcelable(BookContentBean.class.getClassLoader());
    }

    public static final Creator<BookContentData> CREATOR = new Creator<BookContentData>() {
        @Override
        public BookContentData createFromParcel(Parcel source) {
            return new BookContentData(source);
        }

        @Override
        public BookContentData[] newArray(int size) {
            return new BookContentData[size];
        }
    };
}
